import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home'
import Game from './views/Game'
import Product from './views/Product'
import Personage from './views/Personage'
import Vip from './views/Vip'
import Society from './views/Society'

Vue.use(Router)

export default new Router({
	routes:[
		//分类页面
		//产品介绍页
		{ path : '/Product', component: Product },
		//大赛页
		{ path : '/Game', component: Game },
		//个人中心页
		{ path : '/Personage', component: Personage },
		//Vip页
		{ path : '/Vip', component: Vip },
		//公会页
		{ path : '/Society', component: Society },
		//默认页面（首页）
		{ path : '/*', component: Home },
	]
  // routes: [
  //   {
  //     path: '/',
  //     name: 'home',
  //     component: Home
  //   },
  //   {
  //     path: '/about',
  //     name: 'about',
  //     // route level code-splitting
  //     // this generates a separate chunk (about.[hash].js) for this route
  //     // which is lazy-loaded when the route is visited.
  //     component: () => import(/* webpackChunkName: "about" */ './views/About.vue')
  //   }
  // ]
})
